Skip to main content

source_field_gen

1. Description

This program processes .cf and .txt input files, stamps the source and field names in the output.

2. Input

2.1 Mandatory Parameters

#ParametersDescriptionExample
1process_configPath to the process configuration file/path/to/process_config.json
2as_on_dateThe date for which the program should run2025-01-01
3log_file_pathPath to write log file/path/to/log_file.txt
4diagnostics_file_pathPath to write diagnostics logs for performance and error tracking/path/to/diagnostics_file.txt
5connection-stringConnection credentials to connect to the databaseOracle (Username|Password|IP:PORT/Servicename) and Mssql (Server|Database|UserName|Password)

2.2 Non-Mandatory Parameters

#ParametersDescriptionDefault ValueExample
1log_levelLevel of diagnostics written to the log fileinfoerror/warn/info/debug/trace/none
2is_perf_diagnostics_enabledFlag to decide if performance diagnostics will be loggedfalsetrue or false
3delimiterSeparator of columns in input file""
4optionPipe-separated key-value pairs" "key1,value1
5skip_if_input_not_presentFlag to decide whether to skip the operation if the input file is not presentfalsetrue or false

2.3 Process config file 🔗

This file contains:

#FileDescriptionExample
1input_metadataPath to input_metadata file.test-bed/M_PC001.json
2additional_inputPath to additonal files required by the program.test-bed/M_IN003.json.
3output_metadataPath to output_metadata file.test-bed/M_OP001.json

3.Output

The source and field names are stamped according to the required fields separated by "|". It is of the format:

source|field_name|value|Y|admin|as_on_date|admin|as_on_date

It is loaded into the database into "SourceDataFieldValues" table.